$("#form-withdrawalRecord-edit").validate({
    rules: {
        xxxx: {
            required: true,
        },
    },
    submitHandler: function (form) {
        update();
    }
});
var wrStatus = $("input[name='wrStatus']").val();
if (wrStatus === "1") {
    $('input[value="1"]').prop('checked', true);
}
if (wrStatus === "2") {
    $('input[value="2"]').prop('checked', true);
}
if (wrStatus === "3") {
    $('input[value="3"]').prop('checked', true);
}

function update() {
    var selectedValue = $('input[name="status"]:checked').val();
    $("input[name='wrStatus']").val(selectedValue);
    _ajax_exit(ctx + "manage/withdrawalRecord/save", $('#form-withdrawalRecord-edit').serialize(), handleSuccess);
}

/** 操作结果处理 */
function handleSuccess(result) {
    if (result.code == web_status.SUCCESS) {
        parent.layer.msg("操作成功,正在刷新数据请稍后……", {icon: 1, time: 500, shade: [0.1, '#fff']}, function () {
            layer_close();
            return false;
        });
    } else {
        $.modalAlert(result.msg, modal_status.FAIL);
    }
}